Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom ImagePullPolicy and ImagePullSecrets #1771

Closed
wants to merge 2 commits into from
Closed

Custom ImagePullPolicy and ImagePullSecrets #1771

wants to merge 2 commits into from

Conversation

edenkoveshi
Copy link
Contributor

Which problem is this PR solving?

Following this #1768
I have implemented a way to use custom ImagePullPolicy and ImagePullSecrets on the Jaeger components, allowing to customize it a bit more.
It's a feature I needed and it is a very minor and harmless change so I hope you approve :)

Short description of the changes

This is quite simple really.

I've added both corev1-defined objects to the JaegerCommonSpec and then handled it within the util.Merge function
And then I have added the policy and secrets from JaegerCommonSpec to the relevant containers being set up.

If any of them is not set, Kubernetes default is taken.

Following any other JaegerCommonSpec properties, those defined under Jaeger.Spec.JaegerCommonSpec are overwritten by the internal ones (Jaeger.Spec.Agent.JaegerCommonSpec,Jaeger.Spec.AllInOne.JaegerCommonSpec, etc.)

CRD Changes:

  • All deployment modes now have imagePullPolicy and imagePullSecrets fields, including the Jaeger object itself
  • Agent mode has already had this property before. This has been changed within the Go program to Jaeger.Spec.Agent.JaegerCommonSpec.ImagePullSecrets instead of Jaeger.Spec.Agent.ImagePullSecrets and is being handled. Kubernetes-wise nothing has changed.

Test cases have been added and relevant tests updated. Also tested manually on a minikube environment.

handled within util.Merge, and then applied to all created containers.
Relevant tests updated accordingly.

Signed-off-by: edenkoveshi <[email protected]>
@frzifus
Copy link
Member

frzifus commented Feb 22, 2022

Hey @edenkoveshi, thanks for your contribution! ImagePullSecrets are already handled in #1740. What you think about placing your ImagePullPolicy changes on top of this?

@edenkoveshi
Copy link
Contributor Author

Funny I've missed it.
I guess it can be added quite easily, I'll see to it later today

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants